<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Amazon Wishlist Tracker</title>
    </h:head>
    <h:body>
        <h:form>
            <h:panelGrid columns="3">
                <h:outputLabel for="url" value="URL:" />
                <h:inputText id="url" value="#{harvesterBean.newWishlistUrl}" size="100" />
                <h:message for="url" />
                <h:panelGroup />
                <h:commandButton value="GO!" action="#{harvesterBean.go}" />
                <h:panelGroup />
            </h:panelGrid>
        </h:form>
        <ui:repeat value="#{harvesterBean.items}" var="item">
            <h:outputText value="#{item.title}: £#{item}" />
            <br />
        </ui:repeat>
    </h:body>
</html>